// 邀请有礼页面样式 - 暗色主题
.inviterWrap {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--theme-bg-secondary);
  color: var(--theme-text-primary);

  .container {
    flex: 1;
    overflow-y: auto;
    background-color: var(--theme-bg-secondary);
  }
}
.chevronIconAdd{
  font-family: 'Material Icons', serif; font-size: 24px;
  padding: 13px 5px 0;
  margin-right: 14px;
  color: var(--theme-primary) !important;
}
.chevronIconON{
  font-family: 'Material Icons', serif; font-size: 24px;
  margin-right: 14px;
  color: var(--theme-accent-info) !important;
}
.chevronIconCopy{
  font-family: 'Material Icons', serif; font-size: 24px;

}
.copyButtontitle{
  margin-left: 10px;
}
.copyButtonFlex{
  display: flex;
  align-items: center;
}
// 邀请链接区域
.inviteLinkSection {
  position: relative;
  text-align: center;
  padding: 64px 16px;
  overflow: hidden;

  .backgroundImage {
    position: absolute;
    inset: 0;
    background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuBmpUcahxfDXgMNyOGn3xkmNkCikg5bc1-sPgLBO19TfgtLSDKwBdUslYPyylJPB3eMXxmDcdmsiEKT4Vl-BjdYh7wRGfgrv4VNOv0h1Ltz2MNDL3GgoEw3QZmqSDJ1FsI9vc_-g6a8u6BmjABBvL3RIQ3Bt0DKiMqkGP7LgDZmSHAE02KRLlI_N0UgU1Q0xLLw2ckHp9CkVGYTVIPRE5BU2_SXrA_7je1BMcGN1GcXT11A-tt0V0excPbwuXOuzWnBiq5P8z7PmNU');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4);
    z-index: 0;
  }

  .inviteContent {
    position: relative;
    z-index: 10;

    .inviteTitle {
      font-size: 36px;
      font-weight: bold;
      color: var(--theme-text-primary);
      margin-bottom: 12px;
      line-height: 1.2;
    }

    .inviteSubtitle {
      font-size: 16px;
      color: var(--theme-text-muted);
      margin-bottom: 32px;
      line-height: 1.4;
    }

    .inviteLinkBox {
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(8px);
      border-radius: 12px;
      padding: 20px;
      border: 1px solid var(--theme-border-primary);

      .linkLabel {
        font-size: 14px;
        color: var(--theme-text-muted);
        margin-bottom: 8px;
        text-align: center;
      }

      .inviteLink {
        font-size: 18px;
        font-family: monospace;
        word-break: break-all;
        margin-bottom: 16px;
        color: var(--theme-primary);
        line-height: 1.4;
        text-align: center;
      }

      .copyButton {
        width: 100%;
        background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent-info));
        border: none;
        color: var(--theme-text-primary);
        padding: 14px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(244, 114, 182, 0.3);
        transition: all 0.3s ease;

        &:hover {
          box-shadow: 0 6px 16px rgba(244, 114, 182, 0.4);
          transform: translateY(-1px);
        }

        &:disabled {
          opacity: 0.6;
          cursor: not-allowed;
        }

        .copyIcon {
          margin-right: 8px;
          font-size: 18px;
        }
      }
    }
  }
}

// 奖励说明区域
.rewardSection {
  padding: 32px 16px;

  .rewardCard {
    background: var(--theme-bg-card);
    border-radius: 16px;
    padding: 24px;

    .rewardTitle {
      font-size: 24px;
      font-weight: bold;
      text-align: center;
      margin-bottom: 24px;
      background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent-info));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .rewardList {
      display: flex;
      flex-direction: column;
      gap: 24px;

      .rewardItem {
        display: flex;
        padding: 16px;
        align-items: flex-start;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;

        .rewardIcon {
          padding: 8px;
          background: rgba(244, 114, 182, 0.2);
          border-radius: 50%;
          margin-right: 16px;
          flex-shrink: 0;

          .icon {
            font-size: 24px;
            color: var(--theme-primary);
          }
        }

        .rewardContent {
          flex: 1;
          min-width: 0;
          width: 100%;

          .rewardItemTitle {
            font-size: 18px;
            font-weight: bold;
            color: var(--theme-text-primary);
            margin-bottom: 8px;
          }

          .rewardItemDesc {
            font-size: 14px;
            color: var(--theme-text-muted);
            line-height: 1.5;
            word-wrap: break-word;
            word-break: break-word;
            white-space: normal;
            overflow-wrap: break-word;
            max-width: 100%;

            .highlight {
              font-weight: bold;
              color: var(--theme-primary);
              font-size: 16px;
            }
          }
        }
      }
    }
  }
}

// 邀请记录区域
.recordsSection {
  padding: 0 16px 32px;

  .recordsHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .recordsTitle {
      font-size: 20px;
      font-weight: bold;
      color: var(--theme-text-primary);
    }

    .recordsCount {
      font-size: 14px;
      color: var(--theme-text-muted);
    }
  }

  .recordsList {
    background: var(--theme-bg-card);
    border-radius: 16px;
    overflow: hidden;

    .recordItem {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px;
      border-bottom: 1px solid var(--theme-border-primary);
      transition: background-color 0.2s ease;

      &:last-child {
        border-bottom: none;
      }

      &:active {
        background-color: rgba(255, 255, 255, 0.05);
      }

      .recordAvatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        overflow: hidden;
        margin-right: 16px;
        border: 2px solid rgba(244, 114, 182, 0.5);

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      .recordInfo {
        flex: 1;
        display: flex;
        flex-direction: column;

        .recordName {
          font-size: 16px;
          font-weight: 600;
          color: var(--theme-text-primary);
          margin-bottom: 10px;
        }

        .recordDate {
          font-size: 12px;
          color: var(--theme-text-muted);
        }
      }

      .recordStatus {
        text-align: right;

        .statusText {
          font-size: 14px;
          font-weight: 600;
          color: var(--theme-primary);
          margin-bottom: 4px;
        }

        .rewardText {
          font-size: 12px;
          color: var(--theme-text-muted);
        }
      }
    }

    .emptyContainer {
      width: 100%;
      margin: auto;
      padding: 40px 20px;
    }
  }
}

// 响应式设计
@media (max-width: 375px) {
  .inviteLinkSection {
    padding: 48px 12px;

    .inviteContent {
      .inviteTitle {
        font-size: 28px;
      }

      .inviteSubtitle {
        font-size: 14px;
      }

      .inviteLinkBox {
        padding: 16px;

        .inviteLink {
          font-size: 16px;
        }

        .copyButton {
          font-size: 14px;
          padding: 12px;
        }
      }
    }
  }

  .rewardSection {
    padding: 24px 12px;

    .rewardCard {
      padding: 20px;

      .rewardTitle {
        font-size: 20px;
      }

      .rewardList {
        gap: 20px;

        .rewardItem {
          padding: 12px;

          .rewardIcon {
            padding: 6px;
            margin-right: 12px;

            .icon {
              font-size: 20px;
            }
          }

          .rewardContent {
            .rewardItemTitle {
              font-size: 16px;
            }

            .rewardItemDesc {
              font-size: 13px;
            }
          }
        }
      }
    }
  }

  .recordsSection {
    padding: 0 12px 24px;

    .recordsHeader {
      .recordsTitle {
        font-size: 18px;
      }
    }

    .recordsList {
      .recordItem {
        padding: 12px;

        .recordAvatar {
          width: 40px;
          height: 40px;
          margin-right: 12px;
        }

        .recordInfo {
          .recordName {
            font-size: 15px;
          }

          .recordDate {
            font-size: 11px;
          }
        }

        .recordStatus {
          .statusText {
            font-size: 13px;
          }

          .rewardText {
            font-size: 11px;
          }
        }
      }
    }
  }
}

// 加载动画
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recordItem {
  animation: fadeIn 0.3s ease-in-out;
}

// 空状态样式优化
:global(.adm-empty) {
  padding: 40px 20px;
  
  :global(.adm-empty-description) {
    color: var(--theme-text-muted);
    font-size: 14px;
  }
}

// 全局样式覆盖
:global {
  .adm-button {
    border: none;
  }
}